function QuickTeleport_OnLoad(this)
	this:RegisterEvent("SHOW_REQUEST_DIALOG")
	DEFAULT_CHAT_FRAME:AddMessage("QuickTeleport addon loaded.", 0.67, 0, 0.85)
end


function QuickTeleport_OnEvent(this, event)

	if ( event == "SHOW_REQUEST_DIALOG" ) then
		local text = StaticPopupDialogs["SET_REQUESTDIALOG"].text
		if ( string.find(text, "^The transport to .- costs a fee of %d+ gold") or string.find(text, "^Der Transport nach .- kostet %d+ Gold.") ) then
			ClickRequestDialogButton(0) -- click confirm
			StaticPopup1:Hide()
		end
	end

end
